package cc.owoo.godpen.network.reptile;

import java.net.Proxy;

/**
 * 单个代理
 * Created by nimensei
 * 2022-05-02 下午 02:32
 **/
public class SingleProxy implements ProxyPool {
    private final Proxy proxy;// 代理

    public SingleProxy(String ip, int port) {
        this.proxy = ProxyPool.create(ip, port);
    }

    @Override
    public Proxy get() {
        return proxy;
    }
}
